

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>List Completed Work</title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span>
        </div>
        <div class="body">
            <h1>List Completed Work</h1>
	    <div><g:form name="changeNickname" method="get" action="listCompleted">for user named: <g:textField name="displayName" value="${params.displayName}" /></g:form>
	    </div>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="list">
                <table>
                    <thead>
                        <tr>
                   	        <th>Workset</th>
                   	        <th>Image</th>
                   	        <th>Details</th>
                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${setList}" var="st">
		        <g:each in="${st.included}" var="piece">
<tr class="odd">
<td><g:link action="show" id="${st.id}">${st.id?.encodeAsHTML()}</g:link></td>
<td><a href="${piece.simpleEntry.fullImageURL}"><img src="${piece.simpleEntry.thumbnailURL}"></a></td>
<td>
State: ${piece.state?.encodeAsHTML()}<br/>
Set Updated: ${st.lastUpdated?.encodeAsHTML()}
</td>
</tr>
                        </g:each>
                    </g:each>
                    </tbody>
                </table>
            </div>
            <div class="paginateButtons">
                <g:paginate total="${setListCount}" />
            </div>
        </div>
    </body>
</html>
